var http = require('http');
const url = require('url');
http.createServer(function(request,response){
	response.writeHead(200, {'Content-Type': 'text/plain'});
	// 发送响应数据 "Hello World"
	response.end('node');
}).listen(8888);
// 终端打印如下信息
console.log('Server running at http://127.0.0.1:8888/');
console.log(url.parse('http://user:pass@host.com:8080/path/to/file?query=s123123'));